package com.gcd.alienandwheel.actor;

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.gcd.alienandwheel.MyUtil;

/**
 *
 * @author Rezan Achmad
 */
public class Wheel extends Actor {

    Texture textureCar;

    public Wheel(String name) {
        super(name);
        textureCar = new Texture(MyUtil.loadImage("car.png"));
        width = textureCar.getWidth();
        height = textureCar.getHeight();
        originX = width / 2;
        originY = height / 2;
    }

    @Override
    protected void draw(SpriteBatch batch, float parentAlpha) {
        batch.draw(textureCar, x, y, originX, originY, width, height, scaleX, scaleY, rotation, 0, 0, (int) width, (int) height, false, false);
    }

    @Override
    protected boolean touchDown(float x, float y, int pointer) {
        return false;
    }

    @Override
    protected boolean touchUp(float x, float y, int pointer) {
        return false;
    }

    @Override
    protected boolean touchDragged(float x, float y, int pointer) {
        return false;
    }

    @Override
    public Actor hit(float x, float y) {
        return null;
    }
}
